import { createRouter, createWebHashHistory } from 'vue-router';
import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/home',
    children: [
      {
        path: '/home',
        component: () => import('../views/home/HomePage.vue')
      }
    ]
  },
  {
    path: '/about',
    component: () => import('../views/about/AboutPage.vue')
  }
];

const router = createRouter({
  routes,
  history: createWebHashHistory()
});
export default router;
